You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtxVec Class > TMtxVec Methods > Power Method > TMtxVec.Power Method ([In] double)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtxVec.Power Method ([In] double)

Raises base object elements to any power.

Syntax
C#
Visual Basic
public TMtxVec Power([In] double Exponent);

Raises Base calling object elements to any power. The IntPower is faster, if Exponent is an integer. Real valued power can handle only positive Exponent. IntPower can handle negative exponent also. To compute a power to the negative exponent in general case or when the base is negative, use the complex version of the function.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TVec a; MtxVec.CreateIt(out a); try { a.SetIt(false, new double[] {1,2,3,4}); // a = [1,2,3, 4] //magnitude a.Power(1.2); } finally { MtxVec.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!